package com.project.dao;

import com.project.entity.MagFacultyInfo;
import com.project.entity.User;
import com.project.myBeans.MagfacultyInfoDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MagFacultyInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MagFacultyInfo record);

    int insertSelective(MagFacultyInfo record);

    MagFacultyInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MagFacultyInfo record);

    int updateByPrimaryKey(MagFacultyInfo record);

    //根据userid查找 by:WheelChen
    MagFacultyInfo selectByUserId(Integer userid);

    //根据userid更新 by:WheelChen
    int updateByUserId(MagFacultyInfo magFacultyInfo);

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 根据userId删除一个用户
     *
     * @param userId
     * @return
     */
    int deleteOneByUserId(Integer userId);

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 根据用户表、行政表条件
     *
     * @param magfacultyInfoDetail
     * @return
     */
    List<MagfacultyInfoDetail> selectBatchByCondition(MagfacultyInfoDetail magfacultyInfoDetail);
}